import http from '@/utils/http'

export const reqAddComment = (data) => {
  return http.post('/app/comment', data)
}

export const reqGetAllComment = (data) => {
  return http.get(`/app/comment/${data.page}/${data.size}?level=${data.level}`)
}

export const reqGetCommentByUserId = (data) => {
  return http.get(`/app/comment/user/${data.userId}/${data.page}/${data.size}`)
}

export const reqRemoveCommentById = (id) => {
  return http.delete(`/app/comment/${id}`)
}